CombinedReactiveCommand class¶
Attributes: [DebuggerDisplay("{CanExecute}, {IsExecuting}")]
Defined in
Namespace: ReactiveUI Assembly: ReactiveUI.dll Full name: ReactiveUI.CombinedReactiveCommand<T1, T2> Modifiers: public
Summary¶
View source (opens in a new tab)
Encapsulates a composite user interaction.
Applies to
net11.0, net11.0-ios27.2, net11.0-tvos27.2, net11.0-macos27.2, net11.0-android37.0, net11.0-maccatalyst27.2, net10.0, net10.0-macos26.0, net10.0-ios26.0, net10.0-android36.0, net10.0-maccatalyst26.0, net10.0-tvos26.0, net481, net47, net471, net472, net48
Class hierarchy
classDiagram
class CombinedReactiveCommand~T1,T2~
class ReactiveCommandBase~TParam, IList~TResult~~
ReactiveCommandBase~TParam, IList~TResult~~ <|-- CombinedReactiveCommand~T1,T2~
Inherits from: ReactiveCommandBase
Remarks¶
This class provides the bulk of the actual implementation for combined reactive commands. You should not create instances of this class directly, but rather via the static creation methods on the non-generic ReactiveCommand class.
A CombinedReactiveCommand combines multiple reactive commands into a single command. Executing the combined command executes all child commands. Since all child commands will receive the same execution parameter, all child commands must accept a parameter of the same type.
In order for the combined command to be executable, all child commands must themselves be executable. In addition, any canExecute observable passed in during construction must also yield true.
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [CombinedReactiveCommand](# class using the default output scheduler. |
Properties¶
| Name | Summary |
|---|---|
| CanExecute | Gets an observable whose value indicates whether the command can currently execute. |
| IsExecuting | Gets an observable whose value indicates whether the command is currently executing. |
| ThrownExceptions | Gets a observable which will fire whenever an exception would normally terminate ReactiveUI internal state. |
Methods¶
| Name | Summary |
|---|---|
| Subscribe | Subscribes to execution results from this command. |
| Execute | Gets an observable that, when subscribed, executes this command. |
| Dispose | Disposes of the managed resources. |
Inherited members
System.Object.Equals(System.Object)(opens in a new tab)System.Object.Equals(System.Object,System.Object)(opens in a new tab)System.Object.GetHashCode(opens in a new tab)System.Object.GetType(opens in a new tab)System.Object.MemberwiseClone(opens in a new tab)System.Object.ReferenceEquals(System.Object,System.Object)(opens in a new tab)System.Object.ToString(opens in a new tab)